<%--
  Created by IntelliJ IDEA.
  User: TM
  Date: 11/8/12
  Time: 11:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<div class="jquery_tab">

    <div class="content_block">
        <form action="saveAlergyDet.action">

            <table id="table_auto" cellspacing="0">

                <caption>Patient Allergy Details (content of tables defines the allergies)</caption>
                <tr>
                    <th scope="col" colspan="3" align="left">&nbsp;Alergy Details</th>
                </tr>
                <tr>
                    <th>Drug Name</th>
                    <th>Category</th>
                </tr>
                <tr>
                    <th class="spec">Lorem ipsum dolor</th>
                    <td>Blog post</td>
                </tr>
                <tr>
                    <th class="specalt">About me</th>
                    <td class="alt">Static content</td>
                </tr>

                <%--<s:param name="count" value="0"></s:param>--%>
                <s:iterator id="alergy" value="alergyDetailsList">
                    <tr>
                        <th class="spec"><s:property value="%{#alergy.drugName}"/></th>
                        <td><s:property value="%{#alergy.description}"/></td>
                    </tr>

                    <%-- <tr>
                      <th class="specalt">A random Blog post</th>
                      <td class="alt">Blog post</td>
                      <td class="alt">random, post, fun</td>
                      <td class="alt">none</td>
                    </tr>--%>
                </s:iterator>

            </table>


            <p>
                <label for="drugName">Drug Name</label>
                <input class="input-big" type="text" value="" name="drugName" id="drugName"/>
            </p>

            <p>
                <label for="description">Description</label>
                <textarea name="description" id="description" cols="60" rows="15"></textarea>
            </p>


            <p>
                <input class="button" name="submit" type="submit" value="Submit"/>
            </p>
        </form>
    </div>
</div>
<%--
        </div>
    </div>
</div>--%>